const Home  = resolve => require(['@views/home/index'], resolve);
const BigData  = resolve => require(['@views/home/bigData/index'], resolve);
const studyTime = resolve => require(['@views/home/bigData/studyTime'], resolve);
const orignationLife = resolve => require(['@views/home/bigData/orignationLife'], resolve);
const feeCount  = resolve => require(['@views/home/bigData/feeCount'], resolve);
const assessment = resolve => require(['@views/home/bigData/assessment'], resolve);
const partyMenberCount = resolve => require(['@views/home/bigData/partyMenberCount'], resolve);
const Vr  = resolve => require(['@views/home/components/vr.vue'], resolve);
const applyCation  = resolve => require(['@views/home/components/applyCation.vue'], resolve);
const vote   = resolve => require(['@views/home/vote/index.vue'], resolve);
const votePage = resolve => require(['@views/home/vote/votePage.vue'], resolve);
const voteResult =resolve => require(['@views/home/vote/voteResult.vue'], resolve);
const HOME_ROUTERS = [
    //首页
    {
        path: '/home',
        name: 'home',
        component: Home,
        meta: {requireAuth: true,
            index:2,
            navShow:true,
            keepAlive:true,
            title:'首页'
        },
    },
    {
        path:'home/vote',
        name:'vote',
        component: vote,
        meta: {requireAuth: true,index:4,navShow:false,title:'投票选举'},
    },
    {
        path:'home/votePage',
        name:'votePage',
        component: votePage,
        meta: {requireAuth: true,index:4,navShow:false,title:'投票内页'},
    },
    {
        path:'home/voteResult',
        name:'voteResult',
        component: voteResult,
        meta: {requireAuth: true,index:4,navShow:false,title:'投票结果'},
    },
    {
        path:'home/vr',
        name:'Vr',
        component: Vr,
        meta: {requireAuth: true,index:4,navShow:false,title:'VR展馆'},
    },
    {
        path:'home/applyCation',
        name:'applyCation',
        component: applyCation,
        meta: {requireAuth: true,index:4,navShow:false,title:'应用中心'},
    },
    {
        path:'home/bigData',
        name:'bigData',
        component: BigData,
        meta: {requireAuth: true,index:3,navShow:false},
        redirect:"/home/bigData/partyMenberCount",
        children:[
            {
                path:'/home/bigData/partyMenberCount',
                name:'partyMenberCount',
                component: partyMenberCount,
                meta: {requireAuth: true,index:4,navShow:false,title:'党员统计'},
            },
            {
                path:'studyTime',
                name:'studyTime',
                component: studyTime,
                meta: {requireAuth: true,index:4,navShow:false,title:'学习时长统计'},
            },
            {
                path:'orignationLife',
                name:'orignationLife',
                component: orignationLife,
                meta: {requireAuth: true,index:4,navShow:false,title:'组织生活'},
            },
            {
                path:'feeCount',
                name:'feeCount',
                component: feeCount,
                meta: {requireAuth: true,index:4,navShow:false,title:'党费统计'},
            },
            {
                path:'assessment',
                name:'assessment',
                component: assessment,
                meta: {requireAuth: true,index:4,navShow:false,title:'考核信息'},
            }
        ]
    },

]

export default HOME_ROUTERS
